package com.wwt.blog.service;

import com.wwt.blog.pojo.SysUser;
import com.wwt.blog.vo.Result;
import com.wwt.blog.vo.UserVo;

public interface SysUserService {
    //ID查找作者
    SysUser getAuthorByAuthorId(Long authorId);
    //根据token查找用户
    Result getUserByToken(String token);
    //根据账号查找用户
    SysUser getUserByAccount(String account);
    //存用户到数据库
    void insertUser(SysUser user);
    //根据ID返回UserVo作者信息  评论功能使用
    UserVo findUserVoByAuthorId(Long id);
}
